/**
 * @file 路由页面
 * @author wangshaozhi(wangshaozhi@baidu.com)
 */
import {Route, Switch} from 'react-router-dom';

// components
import {Login} from '../components/Login';
import {Home} from '../components/Home';
import {UserRegister} from '../components/Register';
import {RouteGuard} from './routeGuard';

export const RouterIndex = () => {
    return (
        <Switch>
            <Route path="/login" component={Login} />
            <Route path="/register" component={UserRegister} />
            <RouteGuard path="/" component={Home} />
        </Switch>
    );
}